package com.gds.wiki.cloud.admin.server.modular.sys.api.impl;


import com.gds.wiki.cloud.admin.client.sys.api.AdminUserApi;
import com.gds.wiki.cloud.admin.client.sys.model.AdminUser;
import com.gds.wiki.cloud.admin.server.modular.sys.service.AdminUserService;
import com.gds.wiki.cloud.framework.common.dto.ResponseDto;
import com.gds.wiki.cloud.framework.common.exception.BizExceptionEnum;
import com.gds.wiki.cloud.framework.web.common.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(AdminUserApi.mapping)
public class AdminUserApiImpl extends BaseController implements AdminUserApi {

    @Autowired
    AdminUserService userService;


    @Override
    public AdminUser getBySelf(@RequestBody AdminUser user) {
        return null;
    }

    public String TestAAA() {
        return "asdasd";
    }

    public ResponseDto<AdminUser> insert(AdminUser user) {
        ResponseDto rs=new ResponseDto(BizExceptionEnum.SUCCESSFUL_OPERATION);
//         Long id= userService.insert(user);

        return null;
    }
}
